<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
	request.setCharacterEncoding("utf-8");
		if(request.getParameter("su").equals(null) || request.getParameter("su").equals("")){
			%>
			<script>
				alert("구구단 빈칸에 값을 입력해 주십시오.");
				history.go(-1);		
			</script>
		<%}
		else{
			int su = Integer.parseInt(request.getParameter("su"));
			for(int a=1; a<=10; a++){
				out.print(su + "*" + a +" = " + su*a + "<br>");
			}
		}

%>		

</body>
</html>